import * as Request from '../request';

export const GetAdminQulificationCustomAPI = async () => {
  const url = `/api/admin/qulification_custom`;
  let res: any;
  try {
    res = await Request.get(url);
  } catch (error) {
    console.log('request error:', url, error);
  }

  return res;
};

// Admin登录
export const PostAdminQulificationCustomAPI = async (params) => {
  const url = `/api/admin/qulification_custom`;
  let res: any;
  try {
    res = await Request.post(url, params);
  } catch (error) {
    console.log('request error:', url, error);
  }

  return res;
};

export const GetQulificationCustomAPI = async () => {
  const url = `/api/qulification_custom`;
  let res: any;
  try {
    // res = await Request.get(url);
    res = [];
  } catch (error) {
    console.log('request error:', url, error);
  }

  return res;
};
